<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
    <h:head>
        <title>News</title>
        <link rel="stylesheet" href="/News/Content/site.css" type="text/css"/>
        <link rel="stylesheet" href="/News/css/ui-lightness/jquery-ui-1.10.0.custom.css" type="text/css"/>
        <script type="text/javascript" src="/News/js/jquery-1.9.0.js"></script>
        <script type="text/javascript" src="/News/js/jquery-ui-1.10.0.custom.js"></script>
    </h:head>
    <h:body>
        <div class="outer">
            <div class="header">
                <h3>News</h3>
            </div>
            <h:form>
                <div class="topmenu">
                    <ul>
                        <c:forEach var="category" items="#{dBContext.categories}">
                            <li>
                                <h:commandLink action="#{dBContext.browse(category.categoryId)}">
                                    #{category.categoryName}
                                </h:commandLink>
                            </li>
                        </c:forEach>
                    </ul>
                </div>
                <div class="content">
                    <ui:insert name="content"></ui:insert>
                </div>
            </h:form>
        </div>
    </h:body>
</html>

